import {SingleInstance} from './singleinstance'


async function main(){
    const driver = SingleInstance.create_driver();

    await driver.get('https://www.ctrip.com/');
    let jsscript = `document.querySelector('input[id="HD_CheckIn"]').value = "2020-04-01"`
    await driver.executeScript((val:string)=>{
        let dom = document.querySelector('input[id="HD_CheckIn"]') as HTMLInputElement;
        dom.value = val;
    },"2020-09-01")
}

main()